<!DOCTYPE html>
<html lang="ru">
<head>
	<meta charset="UTF-8">
	<title>JQuery Selection</title>
	<link rel="stylesheet" href="style.css">
	<link rel="stylesheet" href="popup.css">
	<script type="text/javascript" src="jquery.1.11.0.js"></script>
	<!--
	<script type="text/javascript" src="jquery.selection.js"></script>
	<script type="text/javascript" src="jquery_errors_text.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$(document).on('click', '.links .get-selection', function(e){
			e.preventDefault();
			console.log($(window).selection());
		});
	});
	</script>
	-->
</head>
<body>
	<div id="content">
		<h2>Пример контента</h2>
		<p>15 ipsum dolor sit amet, consectetur adipisicing elit. Modi, inventore, veritatis. Sed quibusdam voluptates inventore.</p>
		<p></p>
		<p>10 ipsum dolor sit amet, consectetur adipisicing elit. Repellat, aliquam.</p>
		<p></p>
		<p>100 ipsum dolor sit amet, consectetur adipisicing elit. Modi iste ullam aperiam eaque est. Voluptate modi placeat minus, alias tenetur blanditiis, aperiam eum aliquid minima voluptatum quaerat magnam est dolore iusto repellat. Officia deserunt dolor sit est tempora nihil beatae, itaque, nisi dolore nulla rerum, natus harum unde. Doloremque at ad quos, iure nesciunt possimus perspiciatis quae! Similique qui consequatur a tenetur unde sed, iure, repudiandae voluptate, autem, cum maiores praesentium. Non sint veritatis voluptates. Quod quam veniam ratione quibusdam harum quas, quaerat nobis excepturi quos neque nihil. Adipisci dolorem facilis mollitia sed inventore commodi beatae nesciunt dicta quisquam ipsa!</p>
	</div>
	<div class="links">
		<input type="button" class="get-selection" value="getSelection">
	</div>
	<script type="text/javascript" src="orphus.js"></script>
	<a href="http://orphus.ru" id="orphus" target="_blank"><img alt="Система Orphus" src="/orphus/orphus.gif" border="0" width="90" height="32" /></a>

</body>
</html>